import mediaquery from '@system.mediaquery';
export default {
    data: {
        title: 'World'
    },
    matchMedia(){
        var mMediaQueryList = mediaquery.matchMedia('(max-width: 466)');
        console.log(mMediaQueryList)
    },
    onReady() {
        var mMediaQueryList = mediaquery.matchMedia('(max-width: 466)');
        function maxWidthMatch(e) {
            if (e.matches) {
                // do something
                console.log(11111)
            }
        }
        mMediaQueryList.addListener(maxWidthMatch);
        setTimeout(()=>{
            mMediaQueryList.removeListener(maxWidthMatch);
        },3000)
    },

}
